﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AAFLogAnalysis
{
    public partial class AnalysisSetting : Form
    {
        public AnalysisSetting()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Setting.Instase.按简要分组_前N个字符 = int.Parse(按简要前N个字符.Text.Trim());
            Setting.Instase.按简要分组_正则表达式 = 正则表达式.Text.Trim();
            Setting.Save();
            this.Close();
        }

        private void AnalysisSetting_Load(object sender, EventArgs e)
        {
            按简要前N个字符.Text = Setting.Instase.按简要分组_前N个字符.ToString();
            正则表达式.Text = Setting.Instase.按简要分组_正则表达式;
        }
    }
}
